package com.indexingsystem.system.service.impl;

import com.indexingsystem.boss.Vo.ExportThemeWordsReqVo;
import com.indexingsystem.boss.Vo.ProductsRtwReqVo;
import com.indexingsystem.boss.Vo.RelationThemeWordsResVo;
import com.indexingsystem.boss.admin.mapper.IdxProductThemeRelationMapper;
import com.indexingsystem.boss.entity.IdxProductThemeRelation;
import com.indexingsystem.system.service.IdxProductThemeRelationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IdxProductThemeRelationServiceImpl implements IdxProductThemeRelationService {

    @Resource
    private IdxProductThemeRelationMapper idxProductThemeRelationMapper;

    @Override
    public int deleteByPrimaryKey(String relationId) {
        // TODO Auto-generated method stub
        return idxProductThemeRelationMapper.deleteByPrimaryKey(relationId);
    }

    @Override
    public int insert(IdxProductThemeRelation record) {
        // TODO Auto-generated method stub
        return idxProductThemeRelationMapper.insert(record);
    }

    @Override
    public int insertSelective(IdxProductThemeRelation record) {
        // TODO Auto-generated method stub
        return idxProductThemeRelationMapper.insertSelective(record);
    }

    @Override
    public List<RelationThemeWordsResVo> getRelationThemeWordsList(ProductsRtwReqVo reqVo) {
        return idxProductThemeRelationMapper.getRelationWordsList(reqVo);
    }

}
